package yxk.report.wtc.wtte;

import kd.bos.form.mcontrol.mobtable.MobTableModel;
import kd.bos.form.mcontrol.mobtable.events.IMobTablePackageDataHandlerListener;
import kd.bos.form.mcontrol.mobtable.events.MobTablePackageDataHandlerEvent;
import kd.bos.form.mcontrol.mobtable.tablecolumn.MobTableColumn;
import yxk.report.esc.hssc.MyMobTablePackageDataHandler;

import java.util.List;
import java.util.Map;

public class AttendanceInformatioMobTableAdd implements IMobTablePackageDataHandlerListener {
    private Map<String,Map<String,Map<String,String>>> exceMap;

    Map<String, Map<String, List<Map<String, String>>>> maps;
    private String bles;

    public AttendanceInformatioMobTableAdd(){

    }
    public AttendanceInformatioMobTableAdd(Map<String,Map<String,Map<String,String>>> map,String bes){
        this.exceMap = map;
        this.bles=bes;
    }

    public AttendanceInformatioMobTableAdd(String bes,Map<String, Map<String, List<Map<String, String>>>> map){
        this.maps = map;
        this.bles=bes;
    }
    @Override
    public void createMobTablePackageDataHandler(MobTablePackageDataHandlerEvent e) {
        MobTableModel source = (MobTableModel)e.getSource();

        if("1".equals(bles)) {
                e.setMobTablePackageDataHandler(new AttendanceInformatioDataHandler(exceMap, bles));
        }else if("0".equals(bles)){
            e.setMobTablePackageDataHandler(new AttendanceInformatioDataHandler(bles,maps));
        }
    }
}
